package com.charity.service;

import com.charity.model.CommonResponse;
import com.charity.pojo.Entry;
import com.charity.pojo.User;

import java.util.List;

public interface UserService {

    User user(String userName, String password);

    Integer addUser(String userName, String password, String role, String realName, String sex, String idCard, String account, String phone,
                    String email, String address, String difficultyType, String createDate);

    Long userId(String userName);

    User userById(Long id);

    Integer updateUser(Long id, String userName, String password, String realName, String sex, String idCard, String account, String phone,
                       String email, String address, String difficultyType);

    Integer deleteUser(Long id);

    List<User> userBySZ();

}
